home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 032a / perform.doc / PERFORM.DOC
Text File  |  1993-04-27  |  16KB  |  335 lines

  1.  
  2.              by Dr. W. Curtiss Priest
  3.       Center for Information, Technology and Society
  4.               Lexington, MA  02173
  5.         Internet: bmslib@mitvma.mit.edu
  6.               Voice: 617-862-7763
  7.                  4/93
  8. _______________________________________________________________________
  9. ***********************************************************************
  10. This is overview DOC file for:
  11. SYSPROF3 ZIP     71680
  12. PROFILER ZIP     20224
  13. PRF      ZIP     38656
  14. SCOPE105 ZIP     46848
  15. BIGBRO10 ZIP      4608
  16. EVALCACH ZIP     42240
  17. _______________________________________________________________________
  18. ***********************************************************************
  19. Use BIGBRO to watch 112 open's and creates
  20.    [useful to see what temporary file writes are done to
  21.     determine CD-ROM feasiblity]
  22. Use EVALCACH to watch 8196 disk I/O events and produce summary table
  23.    [if you program PASCAL you can use DumpCache procedure (that is
  24.     not enabled in EVAL.EXE) to print out the 8196 I/O events
  25.     by head, cylinder and sector]
  26.    [or use procedure SnoopObject.Dump
  27.     contained in SNOOP.PAS (Pascal interface to SNOOP.COM
  28.     disk logging program)]
  29. Use SYSPROF3 for all INT activity
  30. Use PROFILER for each active area of 640K memory
  31. Use PRF with C code to track activity by code segment
  32. Use SCOPE105 for symbolic program performance info
  33.  
  34. _______________________________________________________________________
  35. ***********************************************************************
  36. Highlights of help files follow:
  37. _______________________________________________________________________
  38. ***********************************************************************
  39. SCOPE105.ZIP     46848 04-12-93  10:57p
  40.     The CodeScope - Version 1.05                          Page  1
  41.  
  42.      1.0 What Is The CodeScope ?
  43.  
  44.      The CodeScope is a symbolic program execution profiler
  45.      designed to enable the identification of heavily used or slow
  46.      portions of a program, or to gain a better understanding of
  47.      where a program spends its time.  Some of the features
  48.      provided by The CodeScope are:
  49.  
  50.           * Adjustable execution sampling rates from 11 to 99
  51.         milliseconds.
  52.  
  53.           * Dynamic control of execution sampling via "hot keys".
  54.  
  55.           * "Full System" or "Program Only" execution sampling.
  56.  
  57.           * Three execution analysis reports, including two
  58.         histograms.
  59.  
  60.           * Support for character, extended ASCII and ANSI color
  61.         graphics histograms.
  62.  
  63.           * Full support for PUBLIC symbols and source code line
  64.         numbers, via MAP file from DOS LINK and other Linkage
  65.         Editors.
  66.  
  67. _______________________________________________________________________
  68. ***********************************************************************
  69. SYSPROF3.ZIP     71680 04-12-93   5:15p
  70. This archive contains code and executables for an enhanced version of the
  71. system profiler described in issue 47 of Micro Cornucopia magazine.  The
  72. subarchive ORIGINAL contains the original source code.
  73.  
  74. To use, install SYS_PROF by simply typing its name.  It will become
  75. memory-resident but inactive.  Use PROFCTRL to turn it on or off:
  76.  
  77.         PROFCTRL status           report whether SYS_PROF is active
  78.         PROFCTRL on               activate profiling
  79.         PROFCTRL off              deactivate profiling
  80.     PROFCTRL report <file>    write the accumulated counts to the file
  81.         PROFCTRL zero             reset the counts
  82.                                          Number of      Number of    Percent of
  83.          Service                    Occurrences    Timer ticks   Total Time
  84.  
  85.  
  86. PRINT SCREEN - INTERRUPT 5H
  87.  
  88.                                               1              34         0.20
  89.  
  90. VIDEO BIOS - INTERRUPT 10H
  91.  
  92.      00 - Set Mode                            1               1         0.01
  93.      02 - Set Cursor Position                 2               0         0.00
  94.      08 - Read Character and Attribute        2               0         0.00
  95.      0C - Write Dot                       64000             609         3.66
  96.      0D - Read Dot                        64050             610         3.66
  97.      0E - Write TTY                         109               2         0.01
  98.      0F - Get Mode                            1               0         0.00
  99.      TOTAL                               128165            1222         7.34
  100.  
  101. DISK SERVICES - INTERRUPT 13H
  102.  
  103.      02 - Read Sectors                       55              37         0.22
  104.  
  105. KEYBOARD BIOS - INTERRUPT 16H
  106.  
  107.      00 - Read Character                      2               0         0.00
  108.      01 - Character Waiting?                 58               0         0.00
  109.      TOTAL                                   60               0         0.00
  110.  
  111. PRINTER BIOS - INTERRUPT 17H
  112.  
  113.      00 - Send Byte                       48310              70         0.42
  114.  
  115. DOS FUNCTIONS - INTERRUPT 21H
  116.  
  117.      08 - Keyboard Input No Echo              2               0         0.00
  118.      19 - Get Default Drive                   4               0         0.00
  119.      1A - Set Disk Transfer Area              2               0         0.00
  120.      25 - Set Interrupt Vector               52               0         0.00
  121.      29 - Parse Filename                      6               0         0.00
  122.      30 - Get DOS Version Number              4               0         0.00
  123.      35 - Get Interrupt Vector               25               0         0.00
  124.      37 - Service 55                          2               0         0.00
  125.      38 - Get Country-Dependent Info          2               0         0.00
  126.      3D - Open File, Handle Mode              2               0         0.00
  127.      3E - Close File, Handle Mode            32               0         0.00
  128.      3F - Read from File or Device            4               0         0.00
  129.      40 - Write to File or Device            12               1         0.01
  130.      42 - Move File Pointer                   4               0         0.00
  131.      44 - I/O Control for Devices            10               0         0.00
  132.      47 - Get Default Directory               4               0         0.00
  133.      48 - Allocate Memory                     4               0         0.00
  134.      49 - Free Memory                         2               0         0.00
  135.      4A - Modify Allocated Memory             2               0         0.00
  136.      4B - EXEC                                2           15284        91.80
  137.      4C - Terminate Process                   2               0         0.00
  138.      4D - Get Return Code                     2               0         0.00
  139.      4E - Find First File, Handle Mode        2               0         0.00
  140.      4F - Find Next File, Handle Mode         6               0         0.00
  141.      TOTAL                                  189           15285        91.81
  142.  
  143.  
  144.                           Total time: 16649 timer ticks
  145.                        914 seconds
  146.  
  147.  
  148. _______________________________________________________________________
  149. ***********************************************************************
  150. PROFILER.ZIP     20224 04-12-93  10:37p
  151. This is a profiler which appeared in the Nov. 1986 issue of PC
  152. Tech Journal.  See the article by Ralph Brickner for more details on the
  153. program.  This archived file contains a sample program PROFILE.BAT which
  154. profiles the DOS utility CHKDSK.COM.  To run the sample, type
  155.  
  156.        profile chkdsk.com [drive:]
  157.  
  158. This screen will show where the program is spending its time through
  159. a "hit count" for each active segment in the 640K address space.  Each
  160. count is 1/18.2 seconds.  The next piece of information is a histogram
  161. of the data listed in the first screen.  Finally, one can zoom in on
  162. a single segment of code.  One must specify the number of bins desired and
  163. whether or not to list any empty bins.  One usually chooses a small number of
  164. bins and displays all of them.
  165.  
  166.  
  167. _______________________________________________________________________
  168. ***********************************************************************
  169. PRF     .ZIP     38656 04-12-93  10:50p
  170. This is a small package to help you decide where a
  171. small or compact model program running under MSDOS is
  172. spending its time..
  173.  
  174. It is limited. It does not take into account time spent
  175. in system calls from a routine, it can only handle a single
  176. code segment.  That said it can probably help you direct your
  177. efforts to those computationally intensive parts of your program
  178. that need to be tightened up.
  179.  
  180. To use the package a TSR routine (prf.exe) needs to be installed.
  181. i.e. at the MSDOS prompt (or in autoexec.bat) type "PRF" (no quotes).
  182.  
  183. Within your program you will need to call two routines. These should
  184. be invoked before and after the bits you want to profile.
  185.  
  186. Here is a sample program.
  187.  
  188. ------------------------------
  189. #include <stdio.h>
  190. #include "prfifl.h"
  191. #include <dos.h>
  192. long TT()
  193. _TT              324 80.20%
  194. _main            47 11.63%
  195. _PRF_ISINST      0  0.00%
  196. _PRF_FN          0  0.00%
  197. _PRFstart        0  0.00%
  198. _PRFstop         0  0.00%
  199. __astart         0  0.00%
  200. __cintDIV        0  0.00%
  201. __amsg_exit      0  0.00%
  202. __cinit          0  0.00%
  203. _exit            0  0.00%
  204. __exit           0  0.00%
  205. __ctermsub       0  0.00%
  206. __FF_MSGBAN      0  0.00%
  207. __fptrap         5  1.24%
  208. __chkstk         4  0.99%
  209.  
  210.  
  211. _______________________________________________________________________
  212. ***********************************************************************
  213. EVALCACH.ZIP     42240 04-14-93   2:52p
  214.  
  215. Load SNOOP.COM, operate program, then run EVAL.EXE
  216.  
  217. EVAL.PAS/EVAL.EXE -- Disk Cache Strategy Performance Evaluator
  218.  
  219. This program estimates the effectiveness of disk caching strategies using
  220. a log of up to 8196 actual disk transactions from your first physical hard
  221. disk. The TSR program SNOOP.COM maintains the log in memory.
  222.  
  223. This version of the program compares the performance of a simple write-
  224. through cache to the performance you'd get from no cache at all. It bases
  225. its speed estimates on hard disk characteristics you enter, rather than on
  226. the actual characteristics of your machine, so you can see how drive
  227. characteristics affect both system and cache performance. You can test your
  228. own cache strategies by defining objects of the type CacheStrategy. You can
  229. also observe the performance effects of cache size. As a simple experiment,
  230. try reducing the cache size to 64K or 128K and press G to simulate the
  231. results. You should notice a dramatic drop in cache performance.
  232.  
  233. The following screen appears in EVAL.EXE:
  234.  
  235. ┌[Disk Cache Strategy Performance Evaluator -- Copyright L. Brett Glass 1989]──┐
  236. │                                                                              │
  237. │ ███████████████████████████████████████████████████████████████████████████  │
  238. │                                                                              │
  239. │ Estimated time without cache = 0.19 sec                                      │
  240. ├──────────────────────────────────────────────────────────────────────────────┤
  241. │                                                                              │
  242. │ ███████████████████████████████████████████████████████████████████████████  │
  243. │                                                                              │
  244. │ Estimated time with simple write-through cache = 0.19 sec                    │
  245. ├──────────────────────────────────────────────────────────────────────────────┤
  246. │                  -- Disk Drive and Cache Parameters --                       │
  247. │                                                                              │
  248. │ T)rack-to-track seek (adjacent):  5 ms    C)ache size : 1024 Kbytes          │
  249. │ A)verage seek time (all tracks):  40 ms                                      │
  250. │ N)umber of cylinders:  615                                                   │
  251. │ R)otational speed: 3600 RPM                                                  │
  252. │ D)isk heads:  4                           P)rogram information               │
  253. │ S)ectors per track: 17                    G)o (recalculate estimates)        │
  254. │ I)nterleave factor:  1 : 1                Q)uit program                      │
  255. ├──────────────────────────────────────────────────────────────────────────────┤
  256. │                                                                              │
  257. │                                                                              │
  258. └──────────────────────────────────────────────────────────────────────────────┘
  259.  
  260.  
  261.  
  262. _______________________________________________________________________
  263. ***********************************************************************
  264. BIGBRO10.ZIP      4608 04-13-93  11:49a
  265. BIGBRO    version 1/0   by E de Neve
  266.  
  267.      ╓─ ▀█▀▌─── ▀█▀▌────────────────────────────────────────────────┐
  268.      ║   █▀▀▌IG  █▀▀▌ROTHER           DOCUMENTATION                 │
  269.      ╚═ ▀▀▀▀ ══ ▀▀▀▀ ═══════════════════════════════════════════════┘
  270.  
  271.      Big Brother is a TSR utility using less than 5 Kbyte of the PC's
  272. memory to store a spy procedure and a small buffer. It is able to register
  273. the filenames used by several MS-DOS functions whenever your PC is about to
  274. read or write a file, or execute a program.
  275.  
  276.      Save disk space by pruning working copies of your software down to their
  277. bare essentials. And with software that doesn't run properly you'll be able to
  278. see for what (missing?) files it was looking, and where/when it was searching.
  279.  
  280.      Big Brother can also help you untangle the messy relations between all
  281. those batch/command/execute/overlay/install/configure/library/device/etc.
  282. files that constitute the 'user friendly' software packages these days.
  283.  
  284.  
  285.  
  286.    Usage:  display help screen   : BIGBRO
  287.            installation          : BIGBRO INSTALL
  288.            controlling           : BIGBRO [OPTION]
  289.  
  290.   Options: ALERT  - Activate the memory resident SPY procedure.
  291.            SLEEP  - Disable it.
  292.            REPORT - Generate a report of files & entry times.
  293.            FLUSH  - Empty the internal filename buffer.
  294.  
  295.      The filename buffer holds a maximum of 112 entries; when
  296. full, Big Brother will automatically enter SLEEP mode until
  297. you do a FLUSH and then reactivate it with ALERT.
  298. To generate a report FILE, type  BIGBRO REPORT > [ReportfileName]
  299.  
  300.  
  301.  
  302.      The REPORT option displays data about every file operation Big Brother
  303. registrated while in ACTIVE mode. The four different columns contain:
  304.  
  305.    (Path-)Name:    The filenames; preceded by a drive ID and complete
  306.                    directory path name ONLY if :
  307.                     a) it was not on the DEFAULT drive & directory.
  308.                     b) it was opened with a PATH/COMSPEC environment string.
  309.                     c) called by the EXECUTE function.
  310.  
  311.       Function:    Three different DOS function calls are linked to
  312.                    the memory resident SPY procedure :
  313.  
  314.                    1) Execute - always a  .COM  or  .EXE program EXECUTED,
  315.                       either by you, a batch (.bat) file or an active program.
  316.  
  317.                    2) Open    - any file OPENED for reading, or a
  318.                       batch file opened for executing.
  319.  
  320.                    3) Create  - any file CREATED; a new file,
  321.                       or an old one being written over.
  322.  
  323.         Result:    Only if an ERROR occurred, an E will appear; it
  324.                    usually indicates a 'FILE NOT FOUND' error.
  325.  
  326.  Time on Entry:    The exact starting time of the DOS function.
  327.                    Big Brother always reports the current time just below
  328.                    its logo for comparison with these entry times.
  329.  
  330.  
  331.  
  332.     *   Big Brother Version 1.0  - september 5th, 1990   *
  333. procedure SnoopObject.Dump(var f : Text);
  334. SNOOP.PAS -- Pascal interface to SNOOP.COM disk logging program
  335.